const Index = httpVueLoader('./pages/indexPages/index.vue');
const Home = httpVueLoader('./pages/homePages/home.vue');
const Data = httpVueLoader('./pages/dataPages/data.vue');
const Demo = httpVueLoader('./pages/demoPages/demo.vue');
const User = httpVueLoader('./pages/userPages/user.vue');

const notice = httpVueLoader('./pages/homePages/notice.vue');
const tempPage = httpVueLoader('./pages/userPages/tempPage.vue');


const routes = [{
        path: '/',
        component: Index,
        children: [{
                path: '/',
                redirect: '/home'
            },
            {
                path: '/home',
                component: Home
            },
            {
                path: '/task',
                component: Data
            },
            {
                path: '/demo',
                component: Demo
            },
            {
                path: '/user',
                component: User
            }
        ]
    },
    {
        path: '/tempPage',
        component: tempPage
    },  {
        path: '/notice',
        component: notice
    },

];
const router = new VueRouter({
    routes // (缩写) 相当于 routes: routes
})
